<?php
class model_calculator{
    
    private $n = 0;
    
    public function add($amount){
        $this->n+=$amount;
    }
    
    public function sub($amount){
        $this->n -= $amount;
    }
    
    public function get(){
        return $this->n;
    }
    
}